package com.jsj.bootdemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsj.bootdemo.pojo.publicSecurity;
import com.jsj.bootdemo.pojo.structurePublicsecurity;
import com.jsj.bootdemo.service.impl.PowerPublicsecurityServiceImpl;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper

public interface powerPublicsecurityMapper extends BaseMapper<structurePublicsecurity> {

    @Select("SELECT GROUP_CONCAT(mname) FROM structure_publicsecurity WHERE is_common =0")
    String publicSecurityInfo();


    @Select("SELECT ${split} FROM public_security")
    public List<publicSecurity> seepublicSecurity(@Param("split") String split);
}
